package com.huaxin.hxenum.validation;

import com.huaxin.hxenum.validator.NotificationReadStatusValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = NotificationReadStatusValidator.class)
public @interface ValidNotificationReadStatus {
    String message() default "无效的通知阅读状态，允许值：unread/read";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
